package com.txy.domain.strategy.service.armory;

/**
 * 策略抽奖调度
 */
public interface IStrategyDispatch {

    /**
     * 抽奖
     * @return
     */
    Integer getRandomAwardId(Long strategyId);

    Integer getRandomAwardId(Long strategyId, String wightRuleValue);

    /**
     * 根据策略和奖品id减少库存，返回是否减少成功
     * @param strategyId
     * @param awardId
     * @return
     */
    Boolean subtractionAwardStock(Long strategyId, Integer awardId);
}
